extract emails from nested scopes
fix remittance grouping
move port values to config