better error handling don't override config on

publish