better detection of included files