work on moving TOS from memory to d7