ensure deep to_h functionality

Do not write to stdout. Use Rails' logger if you want to log.