adding logs for debugging