flattens filesystem, adds get(), changes interface