fixed some disconnection bugs and changed pom command line args