add bool for directory polling