really stupid exception handling