changed barista api