patch ADIS size checking, needs to be fixed still