remove leaks
add indent on output