almost end-end workflow