api small fixes