updated to use small delay time for init