added some writing stubs