added fixes for vm creation