branch checkout for plugin update
update plugin script for edge case