updated rails for security