added tools to validate documents