added simple grid support - incomplete yet