cleanup, reverted caching (should reduce RAM usage)
cleanup