fixed issue with errno not being set for non-numeric
fixed printing