add config and support for alt domains/ports
add config port to curl