fix bug #1 use msleep for speed increases trade-off stability