setup render context, nearly at first render