added batch mode to handle uncached pass phrases