add encryption check function
fix syntax
rm loop
update saftyLevel Handling
Merge branch 'origin/feature-attachments'