flushed out socket server, started on api