handle files without extensions in addition
cache details
handling cursor up dir and popd