fix behavior with --addr and --port params