config and error refactoring related to new transport