better name handling when printing output (show what algorithm this is from, etc)