add toDirectory and related config options to Render API