add required function to env file