removed all globals
Render status fix
tests passing