fix library structure