don't import unuseful documents and handle updates correctly