added support for accuracy callback
added print to log output