fix php dependency bug
more fixes to parser