trying with sleep instead of waitFor...