added mmap files
modified library and fixed some routing