return doc id as key for binary all view
add copy troubleshooting
refactoring