fix transaction template initialization
fix a few logging things in tools