further shuffling of code. Likely broken
LibraryConfig at least compiles now