basic loop with start/stop/resume/pause