adding code to attempt the connection with contentmine and core