calling render callbacks from render.c