move functions for accessing current request url to input lib