reorganize in order to have the library on top