finally managed to enumerate all the modes properly