mode switch to make the templates embedable, removed a bug created by notes
minor bug fix
make import work again
added filtering for index