auto run file checking for enable flag. minor style fix for chart template