adding output for webpage
making leak optional
making leak optional