working version with loc, lat, long, time, wrap