put a try/except around magic id_buffer