mark instance as changed after assigning new file