adding env variables and test adding resources directory