adding all the parse code for php and other changes