made base url dynamic