fernet
refactor