add codes to 1.0.2 branch

add codes to 1.0.2 branch