find a more appropriate name? maybe serialize?