add clear_notices method