add parameters to factory for host and port
rename CommandLocator to CommandTranslator