Use seprate connections for pub and sub
Remove unused config variables