moved plugins upgrade script to separate file