added exception for debugging