switching to rails