add file io for nodejs