renamed core commands to app_before and introdcue app_after