add extern for fs