modified vm wrapper to use new opts