before function before dotcmd before for before return after dotcmd after function