Grid part of twbs and some utils for it