add log channel, minor improvements