fixed pauses into proper wait for commands