serialization; deserialization; code cleanup
tests for interruptible queries and serialization
notes to self