added some http apis