adding error handling for asset retrival