fixes for #861 harcoded template

also adds constants for plugins to activate