added security to all methods