reworked loaddata and history
fixed overlay history etc