refine nioengine and swiftnio code, WIP