replaced parts of the API with Netty