wait contition for validation markers. Fixes #824
Deprecated API usage and other warnings resolved (fixes #828)