properly handle application_data