added logs for debug