added assertions and modpack duplication check