update document, and start to detect parent (../)