support for PHP <5.3 (static -> self). closes #198