pass null will ok for debug