add option to choose render mode