added logging to file adde importr