move to a lib approach
libify