added endpoints and stuff