got rendering mostly working