remove stupid log statement and make error factor work