copied and pasted from the other version

to sort out the synching problems