fixed connectors initializing added a new function