renaming beforeCreate to afterCreate, better error handling, 0.1.6