optimized unknow file method