fix connecting credentials