first iteration of webkit cut fix