bug fix: definition of the external reference should be loaded regardless of the done/waiting flags - those should only be used for firing callbacks