first +/- working version
use default mechanism to validate config