added a wait for checking stuff