few fixes; still can't see a thing

I moved some stuff so that it is created AFTER the context is created.
The debug environment still shows nothing, but it's on its way