raise exception instead of logging to console