updated main simulation pipeline