added a class to call a cpp subprocess
refactored connectionFactory slightly