adjusting put-docs behaviour