added functions to host, no testing done