bump to v1.0.2
refact code