move loading collection to separate module