undid "return null" and changed exception type to IOException for
backwards compatibility with jmpq-v1