update interfaces and docs in encode files