try to prevent double connection