config loglevel
add pubsub