updating plugin stages to use 'before' and 'after' instead of 'pre' and 'post'