added env variable for setting target_directory