version with bugs, but with full new workflow