first working version of renderer...not stable yet