update main plugin file