added cart management (api)