[modules] group modules by type, with some as core