Accept hostame as first argument in manager.connect