progress on kgScript