update config stuff to be more inline with rails 4