added command line port specification

support for attaching to arbitrary ports as specified on the command line