removed logwriter from construct since it does not belong there