modifications for php53