small mod to api