move fe_license download in the if encoded? block