parsing directory