refactored, domainid recommendation deleted, simple logging added