console handles exceptions