setup plugin basic framework