improved cache storage (fixed #11), load resources as well as requirements before installing scripts