fiexed some singleton and reciving of pegs from server