refactor for library, comment out background page, combine submit host
combine trsets and history