find a new way to manager the two casper instance