useless bint paramter in scam_params, fix getcw starting condition
getcwthread_func indent