he was, however, appointed commandant in fredrikstad on 5 february 1815, and took over the fortress when the swedish occupation forces pulled out. that same year he was also awarded the order of the sword.