web api improvements