public api functionality for ajax calls in the real deal