more work on library display code (WIP)