implement default port with tertiary expression

note uninitialised request structs will produce undefined behaviour