ilo: add support for scratch spaces