support render only mode and modified demo