possible solution to bug # 1 -> better log