add readback code for reading back under Ubuntu...