slight change to input handling, also accepts unquoted digits now