move server bootstrap function to netty.server