flattened some packages