added security to chain