add getwaiting getstopped and format output method