added some validation tools