load and cache libraries and configs using the require system for easy access