made grid module work with library