Detect wrong component

fixes #23
i didn't touch any of this stuff. way too scary :smile: