added support for async device creation.