checkpoint before adding mediacollection and refactoring media