move some hardcoded values into defines