first draft of the 'bootstraped' version