fix up api