fix compile errors, but stack rendering is still not fixed/complete