methodes for http server separated, next: rm net dep. in methods