fixed littel bugs to do with app_data file names and the constraint inhirtance bug