some math macros, more work on FAT16 support