make fileinfo optional requirement