add collection repository and fix file schema
update entities