moved all defines to common.h