moved file include to separate function