added exec-instruction to -main since it's a sideaffects only function and I'm not sure where else to put it--subject to change later.