start of tools.lua. note, haven't sussed out how the template should work, yet.