fixes to embedded and standalone transport