add multifile support