support for embedded services.
was not using uid variable in ubuntu template.