switching to rails backend