refactored platform