error rate testing and fixes
introduced milli type safety