frameStack is now initialized on thread creation