attempts to move functions into .functions file