grid api

alright, this is ok. i think it could be useful to refactor at some point though, this is not functionally an issue though, so it's nbd.