more partial phaser code unfuckery