removing fs dependency