ensure forks are ordered and parsed correctly. fixes #294