reorganize libs