▁British ▁defe ats ▁by ▁powerful ▁American ▁fr ig ates ▁at ▁the ▁start ▁of ▁the ▁War ▁of ▁ 1 8 1 2 , ▁Hay es ▁suggested ▁that ▁several ▁old ▁ships ▁of ▁the ▁line ▁be ▁ra ze ed ▁to ▁create ▁ 5 6 - gun ▁ships . ▁The ▁idea ▁was ▁accepted ▁and ▁Hay es ▁given ▁command ▁of ▁one ▁of ▁the ▁ra ze es , ▁HMS ▁Maj estic . ▁Although ▁the ▁ra ze es ▁did ▁not ▁meet ▁any ▁American ▁fr ig ates ▁directly , ▁Maj estic ▁did ▁encounter ▁the ▁Ter ps ich ore ▁at ▁the ▁Action ▁of ▁ 2 ▁February ▁ 1 8 1 4 , ▁and ▁defeated ▁her ▁in ▁a ▁length y ▁eng agement , ▁the ▁French ▁ship ▁s inking ▁soon ▁afterwards . ▁The ▁following ▁year , ▁Hay es ▁was ▁present ▁at ▁the ▁Capt ure ▁of ▁USS ▁President , ▁but ▁Maj estic ▁was ▁not ▁closely ▁engaged . ▁▁ ▁After ▁the ▁end ▁of ▁the ▁war , ▁Hay es ▁was ▁made ▁a ▁Comp an ion ▁of ▁the ▁Order ▁of ▁the ▁Bath ▁and ▁in ▁ 1 8 1 9 ▁was ▁appointed ▁super int endent ▁of ▁H M NB ▁Dev on port , ▁remaining ▁at ▁the ▁post ▁for ▁some ▁years ▁and ▁taking ▁an ▁active ▁role ▁in ▁the ▁design ▁and ▁development ▁of ▁new ▁ships , ▁publishing ▁a ▁number ▁of ▁well ▁received ▁pam ph lets ▁on ▁the ▁subject . ▁In ▁ 1 8 2 9 ▁he ▁was ▁given ▁command ▁of ▁HMS ▁G anges ▁at ▁Port sm outh ▁and ▁the ▁following ▁year ▁moved ▁to ▁HMS ▁D ry ad ▁as ▁Com mod ore