experimenting with writing objects from mongo