add sleep to patch