better main_static that also works after action has been executed, better debugging for expected entropy