moved envir variables out of html