updated build, added clear cache method