replace hardcoded directory reference by config