adding API for local player instance