checked and converted powerswitch.lua to meta