adding krequest class and scriptheader