added callback for wkhtml