removed and refactored the services file into the connection file