fixes #7 Forgot the wait() header.