allow direct printing of integers; better exceptions