Fix autoloading with namespace issues
Fix bug in transport factory