added support for old SDFS, changed other random crap