Server implemented

Some stream methods were also converted