pothos-library: restore slot calls, refactor some files