improve 'peers' script