fixing bug in plugins and added verification of template and plugin checksums