properly check maxvms