20141009 add file mode and fix compile warning