edited version and point to dir