chdir back after chdir into temp dir
implement Mako content processor