refactoring platform core