updating engine stuff to get rendering working