wrap duration and position from device