last idea fixing mind boggling template/xml encoding thing