Hans, Thanks for the code suggestions, helpful to get a feel of the interface for getting tokens back from lua, I need to play with \luafunction more:-) David