added moz support, also log error if error