rm array type
 fix #8, add file support