before function before dotcmd before while before break after while after dotcmd after function