added ability to set variables in service