refactor out mock connector
gradle build