fixed deprecated warnings with new casper