fixes for PHP 5.2
released version 1.2.0