worked on making render work with the rest of the code base