checking widgets files in build more accurately.