replace core with module