Updates to parse api and assorted bug fixes