fixed event bugs, finished system.cache