found a bug, test imeplemented and fixed.
bringing back some error handling that was commented to supress prints.