reduced yielding from for improved performance, now stpl2 is faster than bottlepy
a little refactor
rebase fixed