added more stuff to PHP class;