facade - big part rewrite based on Boyko's code 
   html  - created based on Lar's code