power box refactor