added setDir