add __before & __after method for action