another attempt to make wrap work