added pathTrim
update version number; req php54