optimize connection and bump version to 0.1.4