add shorthand for segment key contraints