added ref count, no more console flag