refactor orthanc and top_decks