move defines to a central place