add parsing of directory