untested code to output supertiles