extract printing to log function, add set and join default channels
add default channels