added basic renderer singleton to manage the context