update:sleep to wait subprocess