added some more env functionality. Getting messy now, might need to reorganize how modules are accessed