add output directory option