now use more ruby idioms. config is symbolized. log for errors is fixed.