initial import from earlier code on bitbucket