move run tx to sperate file
clean up run tx
refractored runblock