fork of https://gitorious.org/thierryreding/grate