adding collection and directory