added some web API functions