make piece temp directory configurable