switched to command based rendering