Fix #41 and #52 server can now return partial state and 0 as total_entries