generating an asset programmatically