updates to sitegen code