fix handling of iolists