inputnumber and some bugfixes