move code for setting paths to main.cpp