clean url,and pretty logs