added type integerity check to parseGuard.refs #13