check extensions; fix error message