getting base url of application. close #58