Detect wrong component

fixes #23
ok, i'll have a look at perltidy options, but this might not be easy.