client class using endpoint property and alias for prototype