refactored my plugin updater