use param for characters when saving paths for tree
use separate include for demo session data
work in progress on thumbnail generation with cache