worked mainly on gscript