older perls wait() differently from modern ones. Yuck