fix api consistency