modified vm_commands to work with folders