moved CastPlayer creation