cleanups
better logic, macro sequences appear to work
cleaned up pause/resume in edit_macros