introduced runname; fixed bug