add fuctionality to GlobalState