override CommonBase file, and make private constructor work for mapped traits