update lib to 1.0.4 and new build