refactored levels information to work on any platform