added pupil server to player.
various small bug fixes.