added rendering context and stuff