add logging, remove VmCheckConfig to a separate  file