rename beforeRun to beforeCall