server refactoring powaaa