Recently, I've seen in a patent a simple N-alkylation reaction of 2-aminobenzothiazole with ethyl bromoacetate. The inventors have carried out N-formylation reaction first followed by coupling with ethyl bromoacetate. So, I wonder why they did not react the free amino group directly with ethyl bromoacetate? Were they afraid of another side cyclization reaction? If so, what is the role of formyl group in this reaction and also to prevent this side reaction?
Many thanks and sorry for that long question...!!!