update constructor

if PrePolling, AfterPolling are null, set a default value for them