added logging
made some changes to the models
added "new host" function