changed args for spawningtool.parse_replay so it works as a standalone function as well