better organization, first part of webserver