added winston logging and domain error handling