code to run experiments for paper and bug fixes