fix fs not being declared