some old edits by me, mainly removal of exec calls
should not have any effect on output