added set(tag) to output
added TODO get_chunk method