param to addresses is optional