improved API responses