validate_config implemented, not fully tested