added client recources releasing