make sure transport .ctx is initialized in the constructor