changed the bind function to set the port instead of having it in the init function