pass in dir