add script scheduler api