clean up parsing and ls-remote