adding resolve loading