handle connections & ids