determine folder for files. closes #4