change structure of libraries files