fixed require(fs)