circumvented the encode_model for now, but posts should work