added command-line variable substitution with values from service config and config.properties