saner input handling