fix issue 20 to automatic parse different type