update daniel
fixed _nextslot sigfault
Fixed write_page and read_page