minor fixes to older code, as well as adding some endpoints for users