remove unnecessary > characters and display correctly
switch to better representation of source locations