init from connect