added getint

with (mild) idiotproofing