IO bugs fixed, minimal version