use filearray and options