[FIX] add a getLevel method to keep a backward compatibility