use IORef, not MVar