required functions seem to be brought in for mandelbrot but still need to handle global structs properly