updated blackbox interface due to suggestions from H-C.