before function before dotcmd before case before return after dotcmd after function