implemented a bit better way of storing frames collections (we can have unlimited number of frames collection types now)