upgrade rails and remove CAP copy