make this debug say "...returned #{result} as class #{result.class}" for making the logs more readable.