added dir processing