add map load callback to resolve some race conditions