[minor] more robust lazy initialization through data-spy api