make baseUrl a method