use relative imports; rename some modules; split up (gm->)gfx into multiple files