added a debug option to join_player