add detachedRendering option