removed hard coded port for cosm api