clean up shade plugin logic.