add base functions to global namespace to use within views