use readFileSync, get rid of console.logs