modified version of interface for debug