this version appears to work ok! yay :)