only set route field if non-empty