fix initializer, improve logger