added dir options