rebuilding player using an object for namespace