add helper function to extend Environment