towards refactored number parsing