first code to ConnectionManager impl