several bufgixes for the file system and pipe gadgets