make loglevel configurable