built a workaround for the ws authorization, must change this by auth tokens, add some tests for the ws