implemented assetmanager in lua