normalizing lib structure