added debug bits; updated base context to include site name