now saves folders under ids, files too