service discovery
bug fix
made port customizable