added pibot api class