replace hard coded directory