implemented loading from engine thread