move some hard code paths to defines in header