split buildpackage into separate library