added intentional delay in refresh to allow for compile time