endpoints working functionally