integrating the new logic in vmedao