update functions to work on non dev or prod server