connection + fix in d1