removing target and updating references/plugins