big fixes from work laptop
adding localvars. Note: hardening not running (untested)
argh fecking modules