added import hook magic for loading templates using import