added possibility to change monitoring port number