handle in a better way when localfs is disabled