added host to manage multiple instances
Started implementing core functions