implementing event-driven loader queue