bridge between API and front-end