refactoring
preprocessing of paths / env vars