forward workign version with websockets and some tests written