works with provided test files. execute_actions code is sloppy and will need cleaned up