moving file checks to app config