switched to rails