add some scanf support