fixed #49 (completed on-demand rendering) which closes #44