added support for validators, removed dependency on toolkit