fixup gameplay
cleanup
use tmp file to cache results