fixing scipt path in connection class