updating hooks to have context and post/pre done in correct env