restore @module to classSpec and only remove it at the last minute