made it get port from config