added index var to cmp to build index.html
implementing layered env