first version of whole workflow