hack to make connection plugin get port