add locale variable
add support for localized / message regions in templates
unsuccessfull attempt to detect if headers are sent

in case junk is being echoed