Scientists work out ways to prevent next pandemic