update to latest version of Grail library. Fixes #22