added port to get_url method. Todo: env specific urls