speed it up a bit, less function calls, less mmaped lookups