input not returns proper integers and doesn't cast 0 to false