compat to old php engine