switching to casperjs