moving to syncronous FS functions