add alias for defining endpoint