fixes for PHP 5.3 - v.0.2