added pre-create hook, patched pre-save hook