added file encryption