stash temporary modification of directory search
copy main code
fix malloc/free bug; use absolute path; only map 4K of each file