add wraparound protection
upversion to 1.0.2.1 for release