use tinyLOVEtemplate + cleaned code (less globals)