move magic numbers to config