updated to use php5.4