move constants into library