restructure of HTTP server & avoid port clashing