detector and args added, to be tested