ensures ca_port is evaluated correctly

closes GH-207