use IORefs for Session and Framerate (again)