fixed --passwords output for API - #297
first steps to allow multiple scans on the same taskid - issue #297