add putchar, reported by latyas;