add consolelog handler and changes