cleaned up name and host writing