Bad properties in esp and  Device script fixes