support for php5.2