v1.0.4 lib upgrade