tweaks for older php