upgrade Dial() app to use API-based argument/option parsing