add test
improved script cache. #9