added args($res) for callback