added socket support with player id