threads as integer, bugfix in demo (hpifit)