fixed big cpu usage under light load
better error message for bad value operations