some file IO related xpcom. misc