added ability to set port in the application startup