add before/after hooks to insert method