using common.h to reduce extern variable declarations