switch to a new branch
got render engine in own class