exposed player object for testing and minor syntax change