fix dependencies and update to rails