multi php version support; fix typos