bugs fixed for adp/tcl templating.. now to list modes