allow shorthand for setting endpoint