separating the script as Facundo proposed
activando plugin device. ref #43