added circuit protection