change dir for pre_cache call