i changed a bit the kill command because it was not working properly, then i added a check for HostPrivileges for each command