fix incompabillity iwth older php