finish api methods