implementing wssh()