fixes secret filename calculation