added time.sleep before reply