Dev simplify config hook

Please review