partway through phaser refactor