first iteration

connection api separated
commit fix