reorganize lib files