sleep to help socket errors