various bug fixes, including msgpack cache instead of pickle