fix library ordering