refactor
added local player registration