support clear_output function (#20)