integrate runtime and backend step 1
move connect functionality from backend to runtime