Simplifying of dir processing