fix configuration problems; clean up catching errors