rail 3.2.17 upgrade and some updates