write out funcs and free their memory before starting up the funcs processors