add mshadow binary io