before function before dotcmd before until before return after dotcmd after function