correct error handling and setuptools installation