will now use environment variable if file cannot be found