hardened defaultAction()
comments
logging added. cleaned up