adding output for webpage
making leak optional