changed visibility of Transport object
added flag to fail on error