library setup and sortable