thank you for suggesting the beforeToHtml plugin, it was exactly what i needed! it's the most complete and least invasive method of everything i've found on the internet