many fixes in parse and api