saved 10 bytes: improved readfat12
added printing newline on error