transition configuration to env variables

please review @danrschlosser 
yes, everything below the divider should be hardcoded settings based off of where the files are held.
i'll move it outside of this try/catch block