update for bg plugin