throw exception instead of print it