restructured to allow application  path at deployment