using dir settings