Fix import/export and copy of applications

These were not workign becuase of the decision changes in [2f339b062d3d8863c88da5c4547eb73d1a5640bb]