modified main plugin file to fix bug in updater script