working on elephant.io fix for php5.3; welcome to global hell