many updates to scripts, better error handling, handle static sites

better syntax