started working on socket api