changed api workflow