refactored creating flags and recipient formatting, need to switch recipient to take in an array, moight be more practiccal