support for php5.4+