bloem - serialize from memory