added chunk_from_thing() macro