scaffold simplex
extract some more utils