must call writeable.end explicitly otherwise weird things happen