add missing fs module
using fileSync
update index