improved numeric parsing, added fmt keyword