1. figure out bugs
2. extension for AF_INET6
