code cleanup: make constant for host, remove unused net/http lib