fix for buffer reuse, simple lighting, other minor fixes