move few hard-coded constants into the header file