- make this work with php 5.5.x