added more error output