pothos-library: commit after much refactoring