research: better deserializing and patterns