added a log for external calls