added a logger for device errors
fixed MathLab
fixed Depense W view