removed directories from handling