complete assetloader logic