added require fs to thing