logging params -> config
make logging configurable