just bind to port, removed some old code and some empty lines