moved some rails config over here