Switching to use of file flag for hapi